package kr.hkit.PowerJava.chapter07;

public class CarTest {
   public static void main(String[] args) {
	   Car myCar = new Car("blue", 100, 5);
       System.out.println(myCar);
	   Object car = myCar;
       System.out.println(car);
	   
	   //  myCar.print();
	//   myCar.color = "Red";
	   /*  myCar.setColor("Red");
	     myCar.setSpeed(100);
	     myCar.setGear(5);*/
	     //   myCar.speed = 100;
	 //  myCar.gear = 5;
	  //System.out.println(myCar);
	   // myCar.print();
	   
	//   Car mycar2 = new Car("blue",60,3);
	  /* mycar2.color = "blue";
	   mycar2.speed = 60;
	   mycar2.gear = 3;*/
	 /*	Car mycar2 = myCar;  
	    mycar2.setColor("Blue");
	    System.out.println(myCar);
	    System.out.println(mycar2);*/   
	 	// mycar2.print();
	 
}
}
